﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Brand
/// </summary>
public class Brand :BaseBAL
{
    CBrandFacade facade = new CBrandFacade();

    private int brandId;
    private string brandName;
    private string brandLogo;
    private int isActive;

    public int BrandId 
    {
        get 
        {
            return brandId;
        }
        set
        {
            brandId = value;
        }
    }
    public string BrandName { get { return brandName; } set { brandName = value; } }
    public string BrandLogo { get { return brandLogo; } set { brandLogo = value; } }
    public int IsActive { get { return isActive; } set { isActive = value; } }

    public Brand Detail(int brandid)
    {
        return facade.Detail(brandid);
    }
    public IList<Brand> List(int pageIndex, int pageMax, int brandId)
    {
        return facade.List(pageIndex, pageMax, brandId);
    }
    public Brand Update(int brandid, string brandName, int _isActive, string urlLogo)
    {
        return facade.Update(brandid, brandName, _isActive, urlLogo);
    }
    public Brand Insert(string brandName, string brandLogo, int _isActive)
    {
        return facade.Insert(brandName, brandLogo, _isActive);
    }
    public Brand UpdateStatusActive(int brandid, int _isActive)
    {
        return facade.UpdateStatusActive(brandid, _isActive);
    }

    public string InsertBrandProduct(int brandId, int productId)
    {
        return facade.InsertBrandProduct(brandId, productId);
    }
}